package com.flong.sys;

import java.util.List;
import java.util.Random;

import com.flong.common.HttpClientUtil;
import com.flong.common.IoUtil;

public class SyiSheng {

	public static void main(String[] args) {
	 
		String path  = "D:/data/sys/txt";
		
		List<String> findFiles = IoUtil.findFiles(path);
		
		for(String s: findFiles){
			System.out.println(s);
		}
		
		//abcdefghijklmnopqrstuvwxyz
		/*String  sts [] =  new String []{"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
		for (int i = 0; i < sts.length; i++) {
			String reqUrl =  "http://www.kyxsys.com/SYS/Account/BasicController/fatherInfo?loginName="+sts[i];
			String retMsg = HttpClientUtil.createHttp(reqUrl, null, null, "GET");
			 if(retMsg!=null){
				 IoUtil.Writer(retMsg, "d:/data/sys"+sts[i]+".txt");
			 }
		}
		*/
		
	}
	

	 /**
     * @Description length表示生成字符串的长度    
     * @Author      liangjilong  
     * @Date        2017年7月26日 上午10:41:30  
     * @param length
     * @return 参数  
     * @return String 返回类型
	  */
	public static String getRandomString1(int length) {
	    String base = "abcdefghijklmnopqrstuvwxyz";     
	    Random random = new Random();     
	    StringBuffer sb = new StringBuffer();     
	    for (int i = 0; i < length; i++) {     
	        int number = random.nextInt(base.length());     
	        sb.append(base.charAt(number));     
	    }     
	    return sb.toString();     
	 }   

	
	
	 /**
     * @Description length表示生成字符串的长度    
     * @Author      liangjilong  
     * @Date        2017年7月26日 上午10:41:30  
     * @param length
     * @return 参数  
     * @return String 返回类型
	  */
	public static String getRandomString2(int length) {
	    String base = "0123456789";     
	    Random random = new Random();     
	    StringBuffer sb = new StringBuffer();     
	    for (int i = 0; i < length; i++) {     
	        int number = random.nextInt(base.length());     
	        sb.append(base.charAt(number));     
	    }     
	    return sb.toString();     
	 }   
}
